<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<script src="crypto-js.js"></script>
		<script src="sm2.js"></script>

		<script>
		function getValue(user) {
			//var jsonReqParams = {

			//};
			//jsonReqParams.username = user;
			//jsonReqParams.password = pas;
			//jsonReqParams = JSON.stringify(jsonReqParams);
			jclqBonusRange(user)
		}

			function jclqBonusRange(e) {
				var pubkeyHex =
					"0438c07f55fd1773eae69834a8cfad4b8c76be0eeb8d6ce36c8f2dcc00e689f9bf638ff05f599964a3eb7d85323613107d4d3a512fb64497ae354bac44bddc7f48";
				var jsonReqParams = sm2Encrypt(e, pubkeyHex, 0);
				console.log(jsonReqParams);
			}
		</script>
	</head>

	<body>

		用户名：<input type="text" id="username" /><br />
		密码：<input type="password" id="password" /><br />
		<button id="submit">登录</button><br />
		<span id="result"></span>

	</body>
</html>